import React, { Component } from 'react';
import {HashRouter as Router,Route,Switch} from 'react-router-dom'
import Home from './page/Home'
import Login from './page/Login'
import Life from './page/Life'
import Shop from './page/Shop'
import NotFound from './page/NotFound'
import Mine from './page/Mine'
import AppCom from './page/App';
import City from './page/City'
import Search from './page/Search'
import Detail from './page/Detail';
import ShopCar from './page/Car'
class App extends Component {
    render() {
        return (
                <Router>
                <AppCom path='/'>
                <Switch>
                        <Route path='/home' component={Home} exact></Route>
                        <Route path='/login' component={Login}></Route>
                        <Route path='/life' component={Life}></Route>
                        <Route path='/shop' component={Shop}></Route>
                        <Route path='/mine' component={Mine}></Route>
                        <Route path='/city/' component={City}></Route>
                        <Route path='/search/:values' component={Search}></Route>
                        <Route path='/detail/:id' component={Detail}></Route>
                        <Route path='/car' component={ShopCar}></Route>
                        <Route path='*' component={NotFound}></Route>
                </Switch>
                </AppCom>
                    
                </Router>
        );
    }
}

export default App;